/******************************************************************************

	COPYRIGHT(C) JONAS 'SORTIE' TERMANSEN 2008, 2009, 2010.

	This file is part of Maxsi Engine.

	Maxsi Engine is free software: you can redistribute it and/or modify it
	under the terms of the GNU Lesser General Public License as published by
	the Free Software Foundation, either version 3 of the License, or (at your
	option) any later version.

	Maxsi engine is distributed in the hope that it will be useful, but WITHOUT
	ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
	FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
	for more details.

	You should have received a copy of the GNU Lesser General Public License
	along with Maxsi Engine. If not, see <http://www.gnu.org/licenses/>.

	MaxsiEngine.dll
	A general purpose C++ library for the Maxsi Technology Project.

	MaxsiUI_ControlInstance.h
	A system so each control can have its own personal instance registered.

****************************************************************************/

//=============================================================================
//	TODO: Maxsi UI is deprecated and should be replaced by something much more
//	elegant, perhaps with the same name, or perhaps even GTK+. It should be
//	lightweight, easy to use, and pretty.
//=============================================================================

#ifndef MaxsiUI_ControlInstance_H
#define MaxsiUI_ControlInstance_H

BeginMaxsiUINamespace

//=============================================================================
//	MaxsiUI_ControlInstance - Some sort of poorly though out general purpose
//	UI control creation system that isn't really widely used.
//=============================================================================
CLASSLINK MaxsiUI_ControlInstance
{
public:
	MaxsiUI_ControlInstance( void );
	MaxsiUI_ControlInstance* Next;
	HWND WindowHandle;
	virtual int Unused(int unused);
};

//=============================================================================
//	MaxsiUI_ControlInstance related stuff
//=============================================================================
LINK MaxsiUI_ControlInstance* GetControlInstance	(HWND ControlHandle);
LINK bool					  DeleteControlInstance	(HWND ControlHandle);
LINK bool					  AddControlInstance	(MaxsiUI_ControlInstance* ControlInstance);

EndMaxsiUINamespace

#endif
